package com.abc.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/springboottest")
public class SpringBootController {
    @RequestMapping("/say")
    public @ResponseBody String say(){
        return "Hello,springBoot";
    }
    @RequestMapping("/jsp")
    public String jsp(Model model){
        model.addAttribute("data","SpringBoot 前端使用 JSP 页面！xxxx");
        return "index";
    }
}
